package com.gqj.elec.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gqj.elec.mapper.ElecWarningDetailMapper;
import com.gqj.elec.domain.ElecWarningDetail;
import com.gqj.elec.service.IElecWarningDetailService;

/**
 * 物资报警详情Service业务层处理
 * 
 * @author lxq
 * @date 2023-09-02
 */
@Service
public class ElecWarningDetailServiceImpl implements IElecWarningDetailService 
{
    @Autowired
    private ElecWarningDetailMapper elecWarningDetailMapper;

    /**
     * 查询物资报警详情
     * 
     * @param warningDetailId 物资报警详情主键
     * @return 物资报警详情
     */
    @Override
    public ElecWarningDetail selectElecWarningDetailByWarningDetailId(Long warningDetailId)
    {
        return elecWarningDetailMapper.selectElecWarningDetailByWarningDetailId(warningDetailId);
    }

    /**
     * 查询物资报警详情列表
     * 
     * @param elecWarningDetail 物资报警详情
     * @return 物资报警详情
     */
    @Override
    public List<ElecWarningDetail> selectElecWarningDetailList(ElecWarningDetail elecWarningDetail)
    {
        return elecWarningDetailMapper.selectElecWarningDetailList(elecWarningDetail);
    }

    /**
     * 新增物资报警详情
     * 
     * @param elecWarningDetail 物资报警详情
     * @return 结果
     */
    @Override
    public int insertElecWarningDetail(ElecWarningDetail elecWarningDetail)
    {
        return elecWarningDetailMapper.insertElecWarningDetail(elecWarningDetail);
    }

    /**
     * 修改物资报警详情
     * 
     * @param elecWarningDetail 物资报警详情
     * @return 结果
     */
    @Override
    public int updateElecWarningDetail(ElecWarningDetail elecWarningDetail)
    {
        return elecWarningDetailMapper.updateElecWarningDetail(elecWarningDetail);
    }

    /**
     * 批量删除物资报警详情
     * 
     * @param warningDetailIds 需要删除的物资报警详情主键
     * @return 结果
     */
    @Override
    public int deleteElecWarningDetailByWarningDetailIds(Long[] warningDetailIds)
    {
        return elecWarningDetailMapper.deleteElecWarningDetailByWarningDetailIds(warningDetailIds);
    }

    /**
     * 删除物资报警详情信息
     * 
     * @param warningDetailId 物资报警详情主键
     * @return 结果
     */
    @Override
    public int deleteElecWarningDetailByWarningDetailId(Long warningDetailId)
    {
        return elecWarningDetailMapper.deleteElecWarningDetailByWarningDetailId(warningDetailId);
    }
}
